package com.tsn.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 论坛
 * </p>
 *
 * @author tsn
 * @since 2021-09-07
 */
@Data
  @EqualsAndHashCode(callSuper = false)
    public class Forum implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "Id", type = IdType.AUTO)
      private Integer Id;

      /**
     * 标题
     */
      private String forumTitle;
      private Integer userId;
      /**
     * 发帖人，楼主
     */
      private String landlord;

      /**
     * 收藏数
     */
      private Integer commentNumber;

      /**
     * 点赞数
     */
      private Integer likeNumber;

  /**
   * 创建时间
   */
  @TableField(fill = FieldFill.INSERT)
  private LocalDateTime createTime;

  /**
   * 修改时间
   */
  @TableField(fill = FieldFill.INSERT_UPDATE)
  private LocalDateTime updateTime;


}
